var Poker = {
    pokers: [
        {show: '黑桃3', val: 3},{show: '红桃3', val: 3},{show: '草花3', val: 3},{show: '方块3', val: 3},
        {show: '黑桃4', val: 4},{show: '红桃4', val: 4},{show: '草花4', val: 4},{show: '方块4', val: 4},
        {show: '黑桃5', val: 5},{show: '红桃5', val: 5},{show: '草花5', val: 5},{show: '方块5', val: 5},
        {show: '黑桃6', val: 6},{show: '红桃6', val: 6},{show: '草花6', val: 6},{show: '方块6', val: 6},
        {show: '黑桃7', val: 7},{show: '红桃7', val: 7},{show: '草花7', val: 7},{show: '方块7', val: 7},
        {show: '黑桃8', val: 8},{show: '红桃8', val: 8},{show: '草花8', val: 8},{show: '方块8', val: 8},
        {show: '黑桃9', val: 9},{show: '红桃9', val: 9},{show: '草花9', val: 9},{show: '方块9', val: 9},
        {show: '黑桃10', val: 10},{show: '红桃10', val: 10},{show: '草花10', val: 10},{show: '方块10', val: 10},
        {show: '黑桃J', val: 11},{show: '红桃J', val: 11},{show: '草花J', val: 11},{show: '方块J', val: 11},
        {show: '黑桃Q', val: 12},{show: '红桃Q', val: 12},{show: '草花Q', val: 12},{show: '方块Q', val: 12},
        {show: '黑桃K', val: 13},{show: '红桃K', val: 13},{show: '草花K', val: 13},{show: '方块K', val: 13},
        {show: '黑桃A', val: 14},{show: '红桃A', val: 14},{show: '草花A', val: 14},{show: '方块A', val: 14},
        {show: '黑桃2', val: 15},{show: '红桃2', val: 15},{show: '草花2', val: 15},{show: '方块2', val: 15},
        {show: '小王', val: 16}, {show: '大王', val:17},
    ],
    convert: function(keys) {   //key转换成对应的牌面
        var vals = [];
        $.each(keys, function(idx, key){
            vals.push(this.pokers[key]);
        })
        return vals;
    },
    cardShow: function(key) {   //key转换成牌面显示
        if (this.pokers[key]) {
            return this.pokers[key].show;
        }
        return '';
    },
    canOut: function(cards, pres) { //检测是否能出牌
        return true;
    },
    getType: function(cards) {  //获取出牌类型

    }
}